home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1526 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: comma.rhein.de!serpens!not-for-mail
  2. From: mlelstv@serpens.rhein.de (Michael van Elst)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Screen Problem in C.
  5. Date: 20 Jan 1996 13:13:52 +0100
  6. Organization: dis-
  7. Message-ID: <4dqma0$pu4@serpens.rhein.de>
  8. References: <DLE6wv.7FB@inter.NL.net> <1222.6593T260T330@norconnect.no>
  9. NNTP-Posting-Host: serpens.rhein.de
  10.  
  11. kenneth@norconnect.no (Kenneth C. Nilsen) writes:
  12.  
  13. >You can use this information in your programs, but to prevent the first
  14. >screen to be changed before you use the data after read, you must lock the
  15. >intuition base so that no one can change the current screen/window status.
  16. >Do this by intuition.library/LockIBase(). Read the pointer to first screen in
  17. >the intuition.library base (FirstScreen). Last, make a call to
  18. >UnlockIBase(ibLock) to allow others to use the intuition as well.
  19.  
  20. Unfortunately this doesn't help since after UnlockIBase() the pointer
  21. may become invalid at any time. So you have to do anything you want
  22. with the pointer while holding the lock (this rules out anything complex).
  23.  
  24. Regards,
  25. -- 
  26.                                 Michael van Elst
  27.  
  28. Internet: mlelstv@serpens.rhein.de
  29.                                 "A potential Snark may lurk in every tree."
  30.